<?php
namespace App\Services;

use App\Models\Articel as mArticel;

class Articel{

	static function getArticels(){
		
		$articels = new mArticel;

		return $articels->get_articels();
	}

	static function getArticelDetail($id){
		
		$articel = new mArticel;

		return $articel->get_articel_detail($id);
	} 

	static function getRecommendArticel(){

		$articel = new mArticel;

		return $articel->get_recommend_articel();
	}

	static function getArticelByCategoryID($id){

		$articel = new mArticel;

		return $articel->get_articel_by_id($id);
	}
}